package com.senlingspace.payment.douyin.bean.response;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * 创建商品、编辑商品  响应
 *
 * @author lebronjames
 * @date 2024/07/23
 */
@Data
public class DouyinProductResponse implements Serializable {

    @JsonProperty("data")
    private ResponseData data;

    @JsonProperty("extra")
    private DouyinCommonResponse.Extra extra;

    @EqualsAndHashCode(callSuper = true)
    @Data
    public static class ResponseData extends DouyinCommonResponse.CommonData {

        /**
         * 创建/更新商品成功后产生，与老接口spu_id一致
         * 预售绑定bind_sku取此字段
         */
        @JsonProperty("product_id")
        private Long productId;

    }

}
